#ifndef STARTUP_H
#define STARTUP_H

#include <QWidget>
#include "devchecker.h"
#include "upgradehelper.h"

namespace Ui {
class StartUp;
}

class StartUp : public QWidget
{
    Q_OBJECT

public:
    explicit StartUp(QWidget *parent = 0);
    ~StartUp();
public slots:
    void onPogressChange(int iv);
    void onUpgrade(int iv);
    void updateTime();
    void upgradeApp();

signals:
    void sendShow();
    void sendErr(QString qErr);
    void powerOff();

private slots:

    void on_btnTwo_clicked();

    void on_btnOne_clicked();

private:
    Ui::StartUp *ui;
    DevChecker *dcThread;
    upgradeHelper *upThread;
    int iUsedForSystem;
};

#endif // STARTUP_H
